@extends('Admin.Layouts.index')

@section('content')

<div class="box span12">
			@if (count($errors) > 0)
				<div class="alert alert-danger">
					<ul>
						@if(is_object($errors))
							@foreach ($errors->all() as $error)
								<li class="alert alert-error">{{ $error }}</li>
							@endforeach
						@else
							<li class="alert alert-error">{{ $errors }}</li>
						@endif
					</ul>
				</div>
			@endif

	<div class="box-header" data-original-title>

		<h2><i class="halflings-icon white edit"></i><span class="break"></span></h2>
		<div class="box-icon">
			<a href="#" class="btn-setting"><i class="halflings-icon white wrench"></i></a>
			<a href="#" class="btn-minimize"><i class="halflings-icon white chevron-up"></i></a>
			<a href="#" class="btn-close"><i class="halflings-icon white remove"></i></a>
		</div>
	</div>
	<div class="box-content">
		<form class="form-horizontal" action="/admin/users" method="post" style="width:500px;">
		{{ csrf_field() }}
		  <fieldset>
			<div class="control-group">
			  <label class="control-label" for="date01">用户名</label>
			  <div class="controls">
				<input type="text" name="username" value="">
			  </div>
			</div>
			<div class="control-group">
			  <label class="control-label" for="date01">密码</label>
			  <div class="controls">
				<input type="password" name="password" value="">
			  </div>
			</div>
			

			<div class="form-actions">
			  <button type="submit" class="btn btn-primary">添加</button>
			  <button type="reset" class="btn">重置</button>
			</div>
		  </fieldset>
		</form>   

	</div>
</div><!--/span-->

@endsection